package com.example.shopping.mapper;

import com.example.shopping.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    List<Category> getAll();

    int insert(Category category);

    int delete(Integer id);

    Category getByName(String name);
}
